#ifndef MYGLWIDGET_H
#define MYGLWIDGET_H

#include <QGLWidget>
#include <QKeyEvent>
namespace Ui {
class MyGLWidget;
}

class MyGLWidget : public QGLWidget
{
    Q_OBJECT

public:
    explicit MyGLWidget(QWidget *parent = 0);
    ~MyGLWidget();
    void initializeGL();
    void resizeGL(int w, int h);
    void paintGL();
protected:
    int LoadGLTextures();
    void DrawCubic();
    void LightInit();
    void BlendInit();
private:
    void keyPressEvent(QKeyEvent* e);
    Ui::MyGLWidget *ui;
    GLuint mTexture[3];
    float mRotate_x;
    float mRotate_y;
    float mRotate_z;
    float mMove_z;


};

#endif // MYGLWIDGET_H
